package de.hmm.hwip.osgi.ipc;

import android.os.Bundle;
import android.os.Message;
import de.hmm.hwip.messagehandler.api.IipcToAndroid;
/**
 * Implementation of IPC Service in Android Service
 * 
 * receives Data from OSGi-Framework and send them to Hardwareconnector  
 * 
 * @author johannes mendel
 * @version 17.10.2012
 *
 */
public class OsgiIpcImpl implements IipcToAndroid {
			
	@Override
	public boolean ipcMessage(int radio, Bundle message) {

		Message msg = new Message();
		msg.setData(message);
		IpcMessageHandler.sendMessage(radio, msg);
		return true;
	}

	
}
